package example.controller;

import example.common.Result;
import example.entity.UserInfo;
import example.service.IUserInfoService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/api/user")
public class UserInfoController {

    @Resource
    private IUserInfoService userInfoService;

    @PostMapping("/check")
    public Result checkUserQualification(@RequestBody UserInfo userInfo) {
        return userInfoService.checkUserQualification(userInfo);
    }
}
